﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using AvansRS.Domain;
using FluentNHibernate.Mapping;
using FluentNHibernate.MappingModel;

namespace AvansRS.Data.Mapping
{
    public class RoosterMap : ClassMap<Rooster>
    {
        public RoosterMap()
        {
            Id(x => x.ID);
            Map(x => x.RoosterNumber);
            Map(x => x.Name);
            Map(x => x.Description);
            HasManyToMany(x => x.TimeBlock)
                .Not
                .LazyLoad();

        }

    }
  
}
